home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3756 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  825 b 

  1. Path: news.pge.com!usenet
  2. From: psk3@pge.com (Phillip Knight)
  3. Newsgroups: comp.lang.c++,comp.unix.programmer
  4. Subject: c++ static objects and fork
  5. Date: 25 Jan 1996 20:58:45 GMT
  6. Organization: Pacific Gas and Electric
  7. Message-ID: <4e8qu5$cmb@news02.comp.pge.com>
  8. NNTP-Posting-Host: psk3ws04.comp.pge.com
  9. Mime-Version: 1.0
  10. Content-Type: Text/Plain; charset=US-ASCII
  11. X-Newsreader: WinVN 0.99.6
  12.  
  13. Here's a simple question, hopefully with a simple answer:  
  14.  
  15.     I have a program which turns itself into a daemon using fork (etc.), 
  16. but I also have several static objects within the program.  What happens to 
  17. these objects after the fork?  There is no exec, so they dont get created anew, 
  18. at least I guess this is the case...
  19.     Anyone have this figured out?  BTW, system is HPUX v 9.04.
  20.  
  21. Thanks in advance!
  22.  
  23. phil knight
  24. psk3@pge.com
  25.  
  26.